package com.example.sup.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName jack_info
 */
@TableName(value ="jack_info")
@Data
public class JackInfo implements Serializable {
    /**
     * 线路表
     */
    @TableId(type = IdType.AUTO)
    private Integer jackId;

    /**
     * 设备表id
     */
    private Integer equipmentId;

    /**
     * 线路名称
     */
    private String jackName;

    /**
     * 1 4路  4 32路
     */
    private Integer jackType;

    /**
     * 最高电压
     */
    private Integer maxVoltage;

    /**
     * 最低电压
     */
    private Integer miniVoltage;

    /**
     * 线路编号
     */
    private Integer jackNumber;

    /**
     * 最高电流
     */
    private Integer maxCurrent;

    /**
     * 最低电流
     */
    private Integer miniCurrent;

    /**
     * 线路状态 1 开  0关
     */
    private Integer jackState;

    /**
     * 监室id
     */
    private Integer prisonId;

    /**
     * 监室所属通道
     */
    private Integer prisonJackId;

    /**
     * 模式状态 0自动 1手动
     */
    private String patternState;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String createBy;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private String updateBy;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JackInfo other = (JackInfo) that;
        return (this.getJackId() == null ? other.getJackId() == null : this.getJackId().equals(other.getJackId()))
            && (this.getEquipmentId() == null ? other.getEquipmentId() == null : this.getEquipmentId().equals(other.getEquipmentId()))
            && (this.getJackName() == null ? other.getJackName() == null : this.getJackName().equals(other.getJackName()))
            && (this.getJackType() == null ? other.getJackType() == null : this.getJackType().equals(other.getJackType()))
            && (this.getMaxVoltage() == null ? other.getMaxVoltage() == null : this.getMaxVoltage().equals(other.getMaxVoltage()))
            && (this.getMiniVoltage() == null ? other.getMiniVoltage() == null : this.getMiniVoltage().equals(other.getMiniVoltage()))
            && (this.getJackNumber() == null ? other.getJackNumber() == null : this.getJackNumber().equals(other.getJackNumber()))
            && (this.getMaxCurrent() == null ? other.getMaxCurrent() == null : this.getMaxCurrent().equals(other.getMaxCurrent()))
            && (this.getMiniCurrent() == null ? other.getMiniCurrent() == null : this.getMiniCurrent().equals(other.getMiniCurrent()))
            && (this.getJackState() == null ? other.getJackState() == null : this.getJackState().equals(other.getJackState()))
            && (this.getPrisonId() == null ? other.getPrisonId() == null : this.getPrisonId().equals(other.getPrisonId()))
            && (this.getPrisonJackId() == null ? other.getPrisonJackId() == null : this.getPrisonJackId().equals(other.getPrisonJackId()))
            && (this.getPatternState() == null ? other.getPatternState() == null : this.getPatternState().equals(other.getPatternState()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getJackId() == null) ? 0 : getJackId().hashCode());
        result = prime * result + ((getEquipmentId() == null) ? 0 : getEquipmentId().hashCode());
        result = prime * result + ((getJackName() == null) ? 0 : getJackName().hashCode());
        result = prime * result + ((getJackType() == null) ? 0 : getJackType().hashCode());
        result = prime * result + ((getMaxVoltage() == null) ? 0 : getMaxVoltage().hashCode());
        result = prime * result + ((getMiniVoltage() == null) ? 0 : getMiniVoltage().hashCode());
        result = prime * result + ((getJackNumber() == null) ? 0 : getJackNumber().hashCode());
        result = prime * result + ((getMaxCurrent() == null) ? 0 : getMaxCurrent().hashCode());
        result = prime * result + ((getMiniCurrent() == null) ? 0 : getMiniCurrent().hashCode());
        result = prime * result + ((getJackState() == null) ? 0 : getJackState().hashCode());
        result = prime * result + ((getPrisonId() == null) ? 0 : getPrisonId().hashCode());
        result = prime * result + ((getPrisonJackId() == null) ? 0 : getPrisonJackId().hashCode());
        result = prime * result + ((getPatternState() == null) ? 0 : getPatternState().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", jackId=").append(jackId);
        sb.append(", equipmentId=").append(equipmentId);
        sb.append(", jackName=").append(jackName);
        sb.append(", jackType=").append(jackType);
        sb.append(", maxVoltage=").append(maxVoltage);
        sb.append(", miniVoltage=").append(miniVoltage);
        sb.append(", jackNumber=").append(jackNumber);
        sb.append(", maxCurrent=").append(maxCurrent);
        sb.append(", miniCurrent=").append(miniCurrent);
        sb.append(", jackState=").append(jackState);
        sb.append(", prisonId=").append(prisonId);
        sb.append(", prisonJackId=").append(prisonJackId);
        sb.append(", patternState=").append(patternState);
        sb.append(", createTime=").append(createTime);
        sb.append(", createBy=").append(createBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}